home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / Memory Leak.txt < prev   
Text File  |  1996-10-30  |  436b  |  7 lines

  1. If you intend to use new or malloc to allocate memory in your Plug-ins, you will need to call FreeAllCplusMem() or FreeAllMallocMem() just before you exit your Plug-in. Not doing so will typically cause a 64k memory leak in your Plug-in each time it is called.
  2.  
  3. The code for the FreeAll*() functions can be found in the 'CW memory files' folder.
  4.  
  5. This is not necessary for Plug-ins that use the PMMalloc() method in the CIBasic class.
  6.  
  7.